#include <iostream>
#include "inputbuffer.h"
#include "promot.h"
using namespace std;

int main()
{
    InputBuffer *pInputBuffer = new InputBuffer();
    while (true) {
        Promot::print_promot();
        pInputBuffer->read_input();
        if (pInputBuffer->buffer == ".exit" || pInputBuffer->buffer == ".quit") {
            exit(EXIT_SUCCESS);
        } else if(pInputBuffer->buffer == ".help") {
             Promot::print_help_info();
        } else {
          cout << "Unrecognized command " << pInputBuffer->buffer << endl;
        }
    }
    return 0;
}
